package com.sc.serialize;

import java.io.Serializable;

/**
 * Created by Shen Chao on 2018-06-16-016.
 */
public class Pig implements Serializable {
    private static String AGE = "22";
    private String name;
    private String color;
    transient private String car;

//    private String addTip;
//
//    public String getAddTip() {
//        return addTip;
//    }
//
//    public void setAddTip(String addTip) {
//        this.addTip = addTip;
//    }

    public static String getAGE() {
        return AGE;
    }

    public static void setAGE(String AGE) {
        Pig.AGE = AGE;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getCar() {
        return car;
    }

    public void setCar(String car) {
        this.car = car;
    }

    @Override
    public String toString() {
        return "Pig{" +
                "name='" + name + '\'' +
                ", color='" + color + '\'' +
                ", car='" + car + '\'' +
//                ", addTip='" + addTip + '\'' +
                '}';
    }
}
